package com.yehuo.app.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yehuo.app.dto.APPOrderDto;
import com.yehuo.app.entity.Order;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AppOrderMapper extends BaseMapper<Order> {
    List<Map<String, Object>> selectOrders(@Param("conditions") APPOrderDto conditions);

//    @Select({"SELECT * FROM o_order o where o.order_no = #{outTradeNo}"})
//    Order selectByNo(String outTradeNo);

    String selectOrdersByPay(@Param("conditions") APPOrderDto selectOrderDto);

    String selectOrdersByIncome(@Param("conditions") APPOrderDto selectOrderDto);
}
